﻿@model User
<div class="user-right">
    <!-- 修改用户信息界面-->
    <div class="user-stock">
        <form action="@Url.DomainRouteUrl(AreasConfig.Web, new { action = "UserEdit", collection = "User" })" method="post">
            <div class="user-l f">
                <label class="fb f20">个人信息</label>
            </div>
            <div class="user-l">
                <label>用户名</label>@Model.UserName
            </div>
            <div class="user-l">
                <label>婚姻状况</label>
                <input type="radio" id="marry0" name="IsMarriage" value="0" @(Model.IsMarriage == 0 || Model.IsMarriage == null ? "checked" : "") /><label for="marry0" style="width: auto !important;">暂不填写</label>
                <input type="radio" id="marry1" name="IsMarriage" value="1" @(Model.IsMarriage == 1 ? "checked" : "") /><label for="marry1" style="width: auto !important;">未婚</label>
                <input type="radio" id="marry2" name="IsMarriage" value="2" @(Model.IsMarriage == 2 ? "checked" : "") /><label for="marry2" style="width: auto !important;">已婚</label>
                <input type="radio" id="marry3" name="IsMarriage" value="3" @(Model.IsMarriage == 3 ? "checked" : "") /><label for="marry3" style="width: auto !important;">离异</label>
                <input type="radio" id="marry4" name="IsMarriage" value="4" @(Model.IsMarriage == 4 ? "checked" : "") /><label for="marry4" style="width: auto !important;">丧偶</label>

            </div>
            <div class="user-l">
                <label>居住地址</label>
                <select class="sel-b" name="Province">
                    <option value="">选择省</option>
                </select>
                <select class="sel-b" name="City">
                    <option value="">选择市</option>
                </select>
                @Html.TextEdit("Address",Model.Address,"",new { style="float:none"},null,null)
            </div>
            <div class="user-l">
                <label>最高学历</label>
                @Html.DropDownList("Education", CommonFunc.GetEducationDropdown(Model.Education))
            </div>
            <div class="user-l">
                <label>所属行业</label>
                @Html.DropDownList("Industry", CommonFunc.GetIndustryDropdown(Model.Industry))
            </div>
            <div class="user-l">
                <label>职业</label>
                @Html.DropDownList("Position", CommonFunc.GetPositionDropdown(Model.Position))
            </div>
            <div class="user-l">
                <label>月收入</label>
                @Html.DropDownList("MonthlySalary", CommonFunc.GetMonthlySalaryDropdown(Model.MonthlySalary))
            </div>
            <div class="user-l" style="padding-left: 200px;">
                 @Html.Hidden(User_.UserId.ToString(),Model.UserId)
                <input type="submit" class="button red" value="确定"/>
                <a class="button grey" href="@Url.DomainRouteUrl(AreasConfig.Web, new {controller = "User", action = "UserInfo", id = Model.UserId})" style="display: inline-block; text-decoration: none">取消</a>
            </div>
        </form>
    </div>
</div>
